package com.alamhubb.idea.plugin.simpleplugin;

import com.intellij.codeInsight.completion.CompletionConfidence;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.intellij.util.ThreeState;
import org.jetbrains.annotations.NotNull;

public final class SimpleCompletionConfidence extends CompletionConfidence {
  @NotNull
  @Override
  public ThreeState shouldSkipAutopopup(@NotNull PsiElement context, @NotNull PsiFile file, int offset) {
    return file.getLanguage().isKindOf(SimpleLanguage.INSTANCE) ? ThreeState.NO : ThreeState.UNSURE;
  }
}